package com.quanquan.user.repository;

import com.quanquan.user.entity.TemplateId;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @ClassName:TemplateIdRepository
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/5/14 11:38
 * @Version 1.0
 */
public interface TemplateIdRepository extends JpaRepository<TemplateId, String> {

    @Query(value = "select * from oo_template_id where type = ?1", nativeQuery = true)
    List<TemplateId> findByType(Integer type);

}
